import { defineStore } from "pinia";

const useArticleFilterStore = defineStore("articleFilter", {
  state: () => ({
    currentOrders: {
      iconName: "",
      orderItem: ""
    },
    queryParams: {
      name: undefined,
      type: undefined,
      orderField: undefined,
      orderType:undefined,
      collectTypeIds:undefined
    },
  }),
  actions: {
    setQueryParamsName(val){
      this.queryParams.name = val
    },
    setQueryParamsType(val){
      this.queryParams.type = val
    }
  }
})

export default useArticleFilterStore
